CREATE TABLE [dbo].[TCMOVI_SACO]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_BANC] [dbo].[TD_VC_003] NOT NULL,
[NU_CNTA_BANC] [dbo].[TD_VC_020] NOT NULL,
[AA_BNCO] [dbo].[TD_VC_004] NOT NULL,
[MM_BNCO] [dbo].[TD_VC_002] NOT NULL,
[TI_MOVI_BANC] [dbo].[TD_VC_001] NOT NULL,
[NU_COMP_BANC] [dbo].[TD_VC_008] NOT NULL,
[AA_CONC] [dbo].[TD_VC_004] NULL,
[MM_CONC] [dbo].[TD_VC_002] NULL,
[FE_OPER] [dbo].[TD_DT_001] NULL,
[FE_CHEQ] [dbo].[TD_DT_001] NULL,
[CO_TIPO_DOCU] [dbo].[TD_VC_003] NULL,
[NU_DOCU_BANC] [dbo].[TD_VC_020] NULL,
[DE_NOMB_ORDE] [dbo].[TD_VC_100] NULL,
[IM_MOVI] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TCMOVI_SA__IM_MO__2EA5EC27] DEFAULT ((0)),
[ST_CONC] [dbo].[TD_VC_001] NULL,
[ST_ORIG] [dbo].[TD_VC_001] NULL,
[CO_GRUP_CONC] [dbo].[TD_VC_020] NULL,
[NU_CORR_CONC] [dbo].[TD_VC_020] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TCMOVI_SA__CO_US__2F9A1060] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TCMOVI_SA__FE_US__308E3499] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TCMOVI_SA__CO_US__318258D2] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TCMOVI_SA__FE_US__32767D0B] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCMOVI_SACO] ADD CONSTRAINT [PK__TCMOVI_S__8AA9A0292EBBC617] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_BANC], [NU_CNTA_BANC], [AA_BNCO], [MM_BNCO], [TI_MOVI_BANC], [NU_COMP_BANC]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCMOVI_SACO] ADD CONSTRAINT [FK__TCMOVI_SACO__11D56EA6] FOREIGN KEY ([CO_EMPR], [CO_BANC], [NU_CNTA_BANC]) REFERENCES [dbo].[TMCNTA_BANC] ([CO_EMPR], [CO_BANC], [NU_CNTA_BANC])
GO
